package com.educational.ServiceImpl;

import com.educational.Entity.Admin;
import com.educational.Mapper.AdminMapper;
import com.educational.Service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * AdminService实现类
 */
@Service("adminService")
@Transactional
public class AdminServiceImpl implements AdminService {
    /**
     * 注入AdminDao
     */
    @Autowired
    private AdminMapper adminMapper;

    /**
     * 通过账号密码来验证管理员登录信息
     */
    @Override
    public Admin AdminLogin(String admin_actnumber,String admin_passord) {
        Admin admin = this.adminMapper.AdminLogin(admin_actnumber,admin_passord);
        return admin;
    }
}
